<?php
/**
 * Created by PhpStorm.
 * User: liuyu
 * Date: 2018/11/19
 * Time: 11:19
 */
namespace App\Http\Controllers\Api\v1\Fortune;

use App\Http\Controllers\Api\BaseController;
use App\Models\Api\FortuneCache;
use App\Models\Api\Goods;
use Illuminate\Http\Request;
/*获取运势商品信息和运势下单
 * Class FortuneForGoods
 * @package app\api\controller\v5
 */

class FortuneForGoodsController extends BaseController
{

    /**
     * 返回运势商品信息
     * @return \think\response\Json
     */
    public function index()
    {
        $data = (new FortuneCache())->getFortuneGoods($this->is_apple_pay, $this->apple_goods);

        return show(config('code.success'), '获取成功', $data);
    }

}
